package com.pnkx.service.controller;

import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @author by PHY
 * @classname TestController
 * @date 2021-12-15 15:11
 * @description: 描述
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @GetMapping("getRequest")
    public Object getRequest(@RequestParam Map<String, Object> params) {
        System.out.println(params.toString());
        return params;
    }

    @PostMapping("postRequest")
    public Object postRequest(@RequestBody Map<String, Object> params) {
        return params;
    }
}
